home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / irix / cc_c++_make_csh / make.qr < prev    next >
Encoding:
Text File  |  1994-08-02  |  3.4 KB  |  96 lines

  1.     
  2.                         make quick reference guide
  3.     
  4.     
  5.     Command flags
  6.     -------------
  7.     -b              Compatibility mode for old makefiles.
  8.     -e              Environment variables override assignments.
  9.     -f <file>       Use <file> for makefile.
  10.     -i              Ignore all errors.
  11.     -k              Keep going even after detecting an error.
  12.     -n              Don't actually execute.
  13.     -p              Print complete set of macro definitions and target
  14.                     descriptions.
  15.     -q              Query and return 0 if up-to-date.
  16.     -r              Remove built-in rules.
  17.     -s              Do not echo commands.
  18.     -t              Just touch targets.
  19.     VAR=value       Set the value of variable VAR.
  20.     
  21.     Makefile Search Order
  22.     ---------------------
  23.     ./makefile
  24.     ./Makefile
  25.     ./s.makefile
  26.     ./s.Makefile
  27.     
  28.     Dependency operators
  29.     --------------------
  30.     :       Set dependency for target to source.  Can accumulate over
  31.             multiple lines.
  32.     
  33.     Preprocess characters
  34.     ---------------------
  35.     -       Ignore errors for this shell line.
  36.     @       Do not print this line.
  37.     
  38.     Variable definitions
  39.     --------------------
  40.     <var> = <value>         Set <var> to <value>.
  41.     
  42.     Predefined local variables
  43.     --------------------------
  44.     $@              Name of the target.
  45.     $?              List of sources that were out of date.
  46.     $*              File portion of the current dependent being processed.
  47.     $<              Implied source file for this target (if none
  48.                     provided).
  49.     $%              The path to an archive file.
  50.     $@F             File portion of target file.
  51.     $<F             File portion of all sources for this target.
  52.     $*F             File portion of current file being processed.
  53.     $%F             File portion of archive file.
  54.     $@D             Directory portion of target file.
  55.     $<D             Directory portion of all sources for this target.
  56.     $*D             Directory portion of the current file being processed.
  57.     $%D             Directory portion of archive file.
  58.     
  59.     Predefined variables
  60.     --------------------
  61.     MAKE            Set to name by which pmake was invoked.
  62.     MAKEFLAGS       Set to flags passed to make as well as options in the
  63.                     environment variable MAKEFLAGS.
  64.     
  65.     Environment variables
  66.     ---------------------
  67.     SHELL           Shell that make should use.
  68.     MAKEFLAGS       Set to flags to be used by make.
  69.     
  70.     Variable expansion
  71.     ------------------
  72.     $(<var>[:<str1>=[<str2>]])      Substitutes <str1> at the end of a
  73.                     word are replaced with <str2>.
  74.     
  75.     Special make commands
  76.     ----------------------
  77.     include <file>          Include <file> from current directory.
  78.     
  79.     Target attributes       <target> : <attribute>
  80.     -----------------
  81.     .DEFAULT        Performed if make can't figure out how to make a
  82.                     particular target.
  83.     .IGNORE         Ignore errors from target's commands.
  84.     .PRECIOUS       Do not delete target if pmake is interrupted.
  85.     .SILENT         Do not echo script.
  86.     .SUFFIXES       Defines the suffixes that make should recognize.
  87.     
  88.     Special targets
  89.     ---------------
  90.     
  91.     Files of interest
  92.     -----------------
  93.     /usr/include/make/commondefs
  94.     /usr/include/make/commonrules
  95.     /usr/include/make/defs
  96.